package cn.liccshop.core.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import cn.liccshop.sys.base.BaseBean;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiCC
 * @since 2019-04-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "shop_cart")
public class ShopCart extends BaseBean {

private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    /**
     * 消费者主键
     */
    @TableField("user_id")
    private String userId;

    /**
     * 商品主键
     */
    @TableField("goods_id")
    private String goodsId;

    /**
     * 选择的属性主键
     */
    @TableField("products_id")
    private String productsId;

    /**
     * 商品数量
     */
    @TableField("cart_num")
    private Integer cartNum;

    /**
     * 创建者
     */
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_date", fill = FieldFill.INSERT)
    private LocalDateTime createDate;

    /**
     * 更新者
     */
    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_date", fill = FieldFill.UPDATE)
    private LocalDateTime updateDate;

    /**
     * 备注信息
     */
    @TableField("remarks")
    private String remarks;

    /**
     * 删除标记
     */
    @TableField("del_flag")
    private Integer delFlag;


}
